class Role < ActiveRecord::Base
  has_many :role_rights, :dependent => :destroy
  has_many :rights, :through => :role_rights
  has_many :user_roles, :dependent => :destroy
  has_many :users, :through => :user_roles
end
